<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>弹出层</title>
    <link href="../css/base.css" rel="stylesheet"/>
    <!--字体图标-->
    <link href="../font/iconfont.css" rel="stylesheet"/>
    <link href="../css/bootstarp.units.css" rel="stylesheet"/>
    <link href="../css/ActivityManage.css" rel="stylesheet"/>
    <!--时间控件-->
    <link href="../plugins/datetimepicker/css/bootstrap-datetimepicker.min.css" rel="stylesheet" media="screen">
    <script src="../js/jquery-1.9.1.min.js"></script>
    <script src="../plugins/layer/layer.js"></script>
</head>
<body>
<div class="layer-body addArena form-horizontal">
    <h2 class="text-center">指定时间</h2>
    <div class="form-group" style="margin-top: 50px">
        <label class="control-label" style="width:110px;">指定时间段：</label>
        <div class="controls shiduan">
            <em>开始</em>
            <input type="text" class="form-control col-md-3" id="startTime"
                   style=" margin-left:0; color:#808080" placeholder="选择日期" value=""
                   onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',autoPickDate:true,readOnly: true})"/>
        </div>
        <div class="controls shiduan marginTop10" style="margin-left:120px;">
            <em>结束</em>
            <input id="endTime" type="text" class="form-control col-md-3"
                   style=" margin-left:0; color: #808080" placeholder="选择日期" value=""
                   onfocus="WdatePicker({dateFmt:'yyyy-MM-dd',autoPickDate:true,readOnly: true})"/>
        </div>
    </div>
    <div class="form-group text-center">
        <button type="button" class="btn green" onclick="savetime()">确定</button>
    </div>
</div>
<script src="../js/basicjs.js"></script>
<script type="text/javascript" src="../js/jquery-1.9.1.min.js"></script>
<script type="text/javascript" src="../js/jquery.query.js"></script>
<!-- 时间控件 -->
<script src="../plugins/My97DatePicker/WdatePicker.js"></script>
<script src="../plugins/layer/layer.js"></script>
<script>
    savetime=function () {
        window.parent.document.getElementById("orgstarttime").value = Date.parse(window.document.getElementById("startTime").value);
        window.parent.document.getElementById("orgendtime").value = Date.parse(window.document.getElementById("endTime").value);
        var index = parent.layer.getFrameIndex(window.name);
        parent.layer.close(index);
    }
</script>
</body>
</html>